//
//  Comment.h
//  Echo
//
//  Created by Liao on 14/12/16.
//  Copyright (c) 2014年 sina. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "User.h"
#import "CurrentUser.h"

@interface Comment : NSObject

@property (nonatomic, retain) NSString *cid;
@property (nonatomic, retain) NSNumber *is_hot;
@property (nonatomic, retain) User *owner;
@property (nonatomic, retain) NSString *text;
@property (nonatomic, retain) NSString *created_time;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)commentsOfTweet:(NSString *)mid AtPage:(NSNumber *)page WithBlock:(void (^)(NSArray *comments, NSError *error))block;
+ (NSURLSessionDataTask *)addCommentByCurrentUserToTweet:(NSString *)mid WithText:(NSString *)text WithBlock:(void (^)(Comment *newComment, NSError *error)) block;

@end
